import request from '@/utils/request'

// 查询成本分析列表
export function listCostAnalysis(query) {
  return request({
    url: '/gs/costAnalysis/list',
    method: 'get',
    params: query
  })
}

// 查询成本分析详细
export function getCostAnalysis(id) {
  return request({
    url: '/gs/costAnalysis/' + id,
    method: 'get'
  })
}

// 新增成本分析
export function addCostAnalysis(data) {
  return request({
    url: '/gs/costAnalysis',
    method: 'post',
    data: data
  })
}

// 修改成本分析
export function updateCostAnalysis(data) {
  return request({
    url: '/gs/costAnalysis',
    method: 'put',
    data: data
  })
}

// 删除成本分析
export function delCostAnalysis(id) {
  return request({
    url: '/gs/costAnalysis/' + id,
    method: 'delete'
  })
}
